package com.affectu.common.util;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;

import com.affectu.common.base.UtilBase;

/**
 * Oct 11, 2008
 * 
 * @author daniel nathan
 */
public class ThreadPoolUtil extends UtilBase {

	private static ExecutorService pool = Executors.newFixedThreadPool(100);// 允许最大运行100线程数

	public final static ExecutorService getThreadPool() {
		return pool;
	}

	public final static ScheduledExecutorService getScheduledExecutorService() {
		return Executors.newSingleThreadScheduledExecutor();
	}
}
